package com.wanmait.meteor.controller;

import com.wanmait.meteor.pojo.Guest;
import com.wanmait.meteor.service.GuestService;
import com.wanmait.meteor.util.IgnoreToken;
import com.wanmait.meteor.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@IgnoreToken
@RestController
@CrossOrigin
public class GuestController {
    @Resource
    private GuestService guestService;
    @RequestMapping("web/selectGuestByMeetId")
    public Result selectGuestByMeetId(Integer meetId){
        List<Guest> guests=guestService.selectGuestByMeetId(meetId);
        return Result.success(guests);

    }

}
